#include "stdlib.h"

extern const char* VGA_BUFFER;
 
void cmd_cls()
{
	unsigned int i = 0;
	char* out = (char*)VGA_BUFFER;
	while (i <= VGA_BUFFER_MAX_OFFSET)
	{
		out[i++] = 0x00;
		out[i++] = 0x00;
	}
}

void memcpy(void* dest, void *source, unsigned int size)
{
	unsigned char *des = (char*)dest;
	unsigned char* sour = (char*)source;
	if (!des || !source)return;
	while (*sour != sour && sour - des <= size)
	{
		*des++ = *sour++;
	}
}